package com.example.sunjian.myapplication.event_dispatch;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.example.sunjian.myapplication.R;

/**
 * 作者：sunjian on 16/6/6 17:32
 * 邮箱：sunjian@cyhz.com
 */
public class EventDisPatchActivity extends Activity implements View.OnClickListener{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.event_layout);
//        findViewById(R.id.view_group).setOnClickListener(this);
        findViewById(R.id.view).setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {

        switch (view.getId()){
            case R.id.view_group:
                Log.e("sj","onClick view group:");
                break;

            case R.id.view:
                Log.e("sj","onClick view :");
                break;
        }
    }
}
